package com.qcby.entity;

import com.fasterxml.jackson.annotation.JsonFormat;

import java.util.Date;

public class UserCheckin {
    private int id;
    private int userId;
    private int shopId;
    private int scriptId;
    private String context;
    private String imgsUrls;
    private int isShared;
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    private Date createdAt;
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    private Date updatedAt;
    private int likes;
    private int reviews;
    private String reviewsId;
    private Shop shop;
    private User user;

    public UserCheckin() {
    }

    public UserCheckin(int id, int userId, int shopId, int scriptId, String context, String imgsUrls, int isShared, Date createdAt, Date updatedAt, int likes, int reviews, String reviewsId, Shop shop) {
        this.id = id;
        this.userId = userId;
        this.shopId = shopId;
        this.scriptId = scriptId;
        this.context = context;
        this.imgsUrls = imgsUrls;
        this.isShared = isShared;
        this.createdAt = createdAt;
        this.updatedAt = updatedAt;
        this.likes = likes;
        this.reviews = reviews;
        this.reviewsId = reviewsId;
        this.shop = shop;
    }

    @Override
    public String toString() {
        return "UserCheckin{" +
                "id=" + id +
                ", userId=" + userId +
                ", shopId=" + shopId +
                ", scriptId=" + scriptId +
                ", context='" + context + '\'' +
                ", imgsUrls='" + imgsUrls + '\'' +
                ", isShared=" + isShared +
                ", createdAt=" + createdAt +
                ", updatedAt=" + updatedAt +
                ", likes=" + likes +
                ", reviews=" + reviews +
                ", reviewsId='" + reviewsId + '\'' +
                ", shop=" + shop +
                ", user=" + user +
                '}';
    }

    public Shop getShop() {
        return shop;
    }

    public void setShop(Shop shop) {
        this.shop = shop;
    }

    public int getId() {
        return id;
    }

    public void setId(int id) {
        this.id = id;
    }

    public int getUserId() {
        return userId;
    }

    public void setUserId(int userId) {
        this.userId = userId;
    }

    public int getShopId() {
        return shopId;
    }

    public void setShopId(int shopId) {
        this.shopId = shopId;
    }

    public int getScriptId() {
        return scriptId;
    }

    public void setScriptId(int scriptId) {
        this.scriptId = scriptId;
    }

    public String getContext() {
        return context;
    }

    public void setContext(String context) {
        this.context = context;
    }

    public String getImgsUrls() {
        return imgsUrls;
    }

    public void setImgsUrls(String imgsUrls) {
        this.imgsUrls = imgsUrls;
    }

    public int getIsShared() {
        return isShared;
    }

    public void setIsShared(int isShared) {
        this.isShared = isShared;
    }

    public Date getCreatedAt() {
        return createdAt;
    }

    public void setCreatedAt(Date createdAt) {
        this.createdAt = createdAt;
    }

    public Date getUpdatedAt() {
        return updatedAt;
    }

    public void setUpdatedAt(Date updatedAt) {
        this.updatedAt = updatedAt;
    }

    public int getLikes() {
        return likes;
    }

    public void setLikes(int likes) {
        this.likes = likes;
    }

    public int getReviews() {
        return reviews;
    }

    public void setReviews(int reviews) {
        this.reviews = reviews;
    }

    public String getReviewsId() {
        return reviewsId;
    }

    public void setReviewsId(String reviewsId) {
        this.reviewsId = reviewsId;
    }

    public User getUser() {
        return user;
    }

    public void setUser(User user) {
        this.user = user;
    }
}
